/* ==================== 收藏页面和详情页面样式 ==================== */

/* 全局容器 */
.list-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* 主卡片容器 */
.list-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    margin: 0 auto;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: #333;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.page-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* 音乐列表区域 */
.music-list-area {
    background: rgba(255, 107, 107, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 107, 107, 0.1);
}

/* 音乐列表表格 */
.music-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.music-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
    cursor: pointer;
}

.music-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(238, 90, 36, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.2);
}

.music-table tbody tr:last-child {
    border-bottom: none;
}

.music-table td {
    padding: 15px 20px;
    font-size: 16px;
    color: #333;
}

.music-table .song-name {
    font-weight: 600;
    color: #ff6b6b;
    transition: all 0.3s ease;
    text-decoration: none;
}

.music-table .song-name:hover {
    color: #ee5a24;
    transform: translateX(5px);
    text-decoration: none;
}

.music-table .song-name::before {
    content: '🎵';
    margin-right: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.music-table .song-name:hover::before {
    opacity: 1;
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    color: #999;
    font-size: 20px;
    margin-bottom: 15px;
}

.empty-state p {
    color: #ccc;
    font-size: 14px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    text-decoration: none;
}

.pagination span {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-color: #ff6b6b;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

/* 返回按钮 */
.back-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    margin-top: 20px;
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    color: white;
    text-decoration: none;
}

/* 音乐详情页面特殊样式 */
.detail-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.detail-header h1 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-header p {
    color: #666;
    font-size: 18px;
    margin-bottom: 30px;
}

/* 3D封面区域 */
.detail-cover-section {
    margin: 40px 0;
}

.detail-ring-wrapper {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    position: relative;
    perspective: 1000px;
}

.detail-mini-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%);
}

.detail-mini-ring.spin {
    animation: spin3D 20s linear infinite;
}

@keyframes spin3D {
    from { transform: translate(-50%, -50%) rotateY(0deg); }
    to { transform: translate(-50%, -50%) rotateY(360deg); }
}

.detail-mini-ring img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.detail-mini-ring img:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.3);
}

/* 播放控制区域 */
.detail-controls {
    background: rgba(255, 107, 107, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border: 2px solid rgba(255, 107, 107, 0.1);
}

.detail-control-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.detail-control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.detail-control-btn:hover::before {
    width: 100%;
    height: 100%;
}

.detail-control-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

/* 进度条 */
.detail-progress-section {
    margin: 25px 0;
}

.detail-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

#progressBar {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: rgba(255, 107, 107, 0.2);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

#progressBar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

#progressBar::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .list-container,
    .detail-container {
        padding: 15px;
    }
    
    .list-card,
    .detail-card {
        padding: 20px;
    }
    
    .page-header h1,
    .detail-header h1 {
        font-size: 24px;
    }
    
    .music-table td {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .detail-ring-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .detail-mini-ring img {
        width: 120px;
        height: 120px;
    }
    
    .detail-control-btn {
        width: 70px;
        height: 70px;
    }
    
    .pagination {
        gap: 10px;
        padding: 15px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .list-container,
    .detail-container {
        padding: 10px;
    }
    
    .list-card,
    .detail-card {
        padding: 15px;
    }
    
    .page-header h1,
    .detail-header h1 {
        font-size: 20px;
    }
    
    .music-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .detail-ring-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .detail-mini-ring img {
        width: 100px;
        height: 100px;
    }
    
    .detail-control-btn {
        width: 60px;
        height: 60px;
    }
    
    .pagination {
        gap: 8px;
        padding: 12px;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 30px;
    }
}

/* 特殊效果 */
.list-card::before,
.detail-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24, #ff3838, #ff6b6b);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.1;
}

/* 搜索页面专用样式 */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.2);
}

.result-content {
    flex: 1;
}

.result-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.result-title a {
    color: #ff6b6b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.result-title a:hover {
    color: #ee5a24;
    text-decoration: none;
}

.result-artist {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.result-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.result-type {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.result-score {
    color: #999;
    font-size: 12px;
}

.result-action {
    margin-left: 20px;
}

.play-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    color: white;
    text-decoration: none;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    border-top-color: #ff6b6b;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
